package com.yunchang.springboot.mapper.finance;

import com.yunchang.springboot.models.DO.finance.FinanceCaravanProcessingOrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FinanceCaravanProcessingOrderItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FinanceCaravanProcessingOrderItem record);

    int insertSelective(FinanceCaravanProcessingOrderItem record);

    FinanceCaravanProcessingOrderItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FinanceCaravanProcessingOrderItem record);

    int updateByPrimaryKey(FinanceCaravanProcessingOrderItem record);

    /**
     * 获得对应加工单号的加工商品的所有原材料数据
     * */
    List<FinanceCaravanProcessingOrderItem> getDataByProcessingDocumentNoWarehouseToSku(@Param("processingDocumentNo")String processingDocumentNo,
                                                                                        @Param("warehouse")String warehouse,
                                                                                        @Param("toSku")String toSku);
}